<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <meta name="viewport" content="width=device-width, initial-scale=1"/>
    <title>管理员主页</title>
    <!-- 1. 导入CSS的全局样式 -->
    <link href="${pageContext.request.contextPath}/css/bootstrap.min.css" rel="stylesheet">
    <!-- 2. jQuery导入，建议使用1.9以上的版本 -->
    <script src="${pageContext.request.contextPath}/js/jquery-2.1.0.min.js"></script>
    <!-- 3. 导入bootstrap的js文件 -->
    <script src="${pageContext.request.contextPath}/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
    <p style="text-align: center;" class="bg-info">---</p>
    <h2 style="text-align: center;">XX博客</h2>
    <p style="text-align: center;" class="bg-info">---</p>
    <h3 style="text-align: center;">欢迎你 , 管理员${sessionScope.user.username}</h3>
    <br>
    <a style="float: right;margin: 5px" class="btn btn-primary"
       href="${pageContext.request.contextPath}/UserBlog/findBlogByPage">返回</a>
    <br>
    请选择你要进行的操作
    <span class="caret"></span>

    <table class="table table-striped">
        <tr>
            <th>用户操作</th>
            <th>博客操作</th>
            <th>评论管理</th>
            <th>专栏操作</th>
        </tr>
        <tr>
            <th><a class="btn btn-default btn-lg active"
                   href="${pageContext.request.contextPath}/User/banUserList">封禁用户</a></th>
            <th><a class="btn btn-default btn-lg active" href="${pageContext.request.contextPath}/UserBlog/examineList">审核文章</a>
            </th>
            <th><a class="btn btn-default btn-lg active"
                   href="${pageContext.request.contextPath}/BlogComment/getCommentList">评论管理</a></th>
            <th><a class="btn btn-default btn-lg active"
                   href="${pageContext.request.contextPath}/Column/deleteColumnList">专栏管理</a></th>
        </tr>
        <tr>
            <th><a class="btn btn-default btn-lg active" href="${pageContext.request.contextPath}/User/noBanUserList">解禁用户</a>
            </th>
            <th><a class="btn btn-default btn-lg active"
                   href="${pageContext.request.contextPath}/UserBlog/managerUpdateList">修改文章</a></th>
            <th><a class="btn btn-default btn-lg active" href="${pageContext.request.contextPath}/User/onlineUser">暂定为查看当前在线用户</a>
            </th>
            <th><a class="btn btn-default btn-lg active" href="#">还没想好</a></th>
        </tr>
        <tr>
            <td>
                <a class="btn btn-default btn-lg active"
                   href="${pageContext.request.contextPath}/User/banTimeList">限制用户上线时间</a>
            </td>
        </tr>
    </table>
</div>
</body>
</html>
